package com.neu.question.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 答者表
 * @TableName respondent_info
 */
@TableName(value ="respondent_info")
@Data
public class RespondentInfo implements Serializable {
    /**
     * 主键 自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 答者的ID
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 所属群组ID
     */
    @TableField(value = "group_id")
    private String groupId;

    /**
     * 邮箱地址
     */
    @TableField(value = "email")
    private String email;

    /**
     * 参与答题后会有该答卷的问卷id,成一个id数组
     */
    @TableField(value = "questionnaire_id")
    private String questionnaireId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}